package ru.urfc.portal.model.catalogs;

import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class SpectrCatalogItem {

	@Id
	public String code;
	public String text;

	// for JAXB only
	public SpectrCatalogItem() {
	}

	public SpectrCatalogItem(String code, String text) {
		super();
		this.code = code;
		this.text = text;
	}

}
